/**
 * 
 * @desc 移动页面自适应
 * @return null
 * width设计稿的宽度
 * min 自适应最小宽度，max 自适应最大宽度
 */
function pageAdap(width,min,max) {
	if(typeof width!=="number"||typeof min!=="number"||typeof max!=="number"){
		console.log("自适应的参数传错");
		width = parseInt(width);
		min = parseInt(min);
		max = parseInt(max);
	};
    var w = document.body.clientWidth;
    var max = max||960;
    var min = min||320;
    var width = width/100||6.4; 
	w=w>max?max:w;
	w=w<min?min:w;
	document.querySelector("html").style.fontSize = w/width+'px';
}

module.exports = pageAdap;


